package org.shopen.ai.puremvc.model
{
	import org.puremvc.as3.patterns.proxy.Proxy;

	public class StateProxy extends Proxy
	{
		public static const NAME : String = "StateProxy";
		
		public static const STATE_UNDEFINED : String = NAME  + ".STATE_UNDEFINED"
		
		public function StateProxy(data:Object=null)
		{
			super(StateProxy.NAME, data);
		}
		
		public function get currentState() : String
		{
			var result : String = STATE_UNDEFINED;
			if (getData() != null)
			{
				result = data.toString();
			}
			return result;
		}
		
		public function set currentState(value : String) : void
		{
			setData(value);
		}
	}
}